<script setup lang="ts">
import { useExample } from "./hook";
import { PureTableBar } from "@/components/RePureTableBar";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
import share from "@iconify-icons/ri/share-box-line";
defineOptions({
  name: "filelist"
});
const { columns } = useExample();
</script>

<template>
  <div class="main">
    <PureTableBar title="生命/重疾表数据">
      <template #buttons>
        <el-button type="primary" :icon="useRenderIcon(share)">
          导入
        </el-button>
      </template>
      <template v-slot="{ size, checkList }">
        <pure-table
          border
          align-whole="center"
          showOverflowTooltip
          table-layout="auto"
          :size="size"
          :columns="columns"
          :checkList="checkList"
          :paginationSmall="size === 'small' ? true : false"
          :header-cell-style="{
            background: 'var(--el-table-row-hover-bg-color)',
            color: 'var(--el-text-color-primary)'
          }"
        />
      </template>
    </PureTableBar>
  </div>
</template>

<style scoped lang="scss">
:deep(.el-dropdown-menu__item i) {
  margin: 0;
}
</style>
